package com.sevenpay.wx.connection.bean;

import java.io.Serializable;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 获取accessToken的请求信息Bean
 * 
 * @author 刺客
 *
 */
public class AccessToken4WebResponseBean implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@JSONField(name = "access_token")
	private String accessToken = null;// 网页授权接口调用凭证,注意：此access_token与基础支持的access_token不同
	@JSONField(name = "expires_in")
	private String expiresIn = null;// access_token接口调用凭证超时时间，单位（秒）
	@JSONField(name = "refresh_token")
	private String refreshToken = null;// 用户刷新access_token
	@JSONField(name = "openid")
	private String openId = null;// 用户唯一标识，请注意，在未关注公众号时，用户访问公众号的网页，也会产生一个用户和公众号唯一的OpenID
	@JSONField(name = "errcode")
	private String errCode = null;
	@JSONField(name = "errmsg")
	private String errMsg = null;
	/**
	 * 应用授权作用域，snsapi_base
	 * （不弹出授权页面，直接跳转，只能获取用户openid），snsapi_userinfo（弹出授权页面，可通过openid拿到昵称、性别、所在地。并且，即使在未关注的情况下，只要用户授权，也能获取其信息）
	 */
	private String scope = null;

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(String expiresIn) {
		this.expiresIn = expiresIn;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

	public String getErrCode() {
		return errCode;
	}

	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

}
